﻿package mortal.game.view.signUp.data
{
    import mortal.game.resource.*;

    public class SignUpTabType extends Object
    {
        public static var DailySignUp:String = "DailySignUp";
        public static var LevelRewardVipUpGift:String = "LevelRewardVipUpGift";
        public static var LineOffRewardCopy:String = "LineOffRewardCopy";
        public static var SevenDayLogin:String = "SevenDayLogin";
        public static var LineOffRewardExp:String = "LineOffRewardExp";
        public static var LineOnGetReward:String = "LineOnGetReward";
        public static var ActivationTake:String = "ActivationTake";
        public static var RedPackPanel:String = "RedPackPanel";
        public static var CollectExchange:String = "CollectExchange";
        public static var DoubleElevenCollectExchange:String = "DoubleElevenCollectExchange";
        public static var tabArr:Array = [DailySignUp, LevelRewardVipUpGift, LineOnGetReward, LineOffRewardCopy, LineOffRewardExp, ActivationTake, RedPackPanel, CollectExchange, DoubleElevenCollectExchange];
        public static var tabIndexObj:Object = {DailySignUp:0, LevelRewardVipUpGift:1, LineOnGetReward:2, LineOffRewardCopy:3, LineOffRewardExp:4, ActivationTake:5, RedPackPanel:6, CollectExchange:7, DoubleElevenCollectExchange:8};
        public static var openLevel:Object;

        public function SignUpTabType()
        {
            return;
        }// end function

        public static function init() : void
        {
            openLevel = {};
            openLevel.LineOnGetReward = GameDefConfig.instance.getSystemOpenLevel(40);
            openLevel.SevenDayLogin = GameDefConfig.instance.getSystemOpenLevel(41);
            openLevel.LevelRewardVipUpGift = GameDefConfig.instance.getSystemOpenLevel(42);
            openLevel.DailySignUp = GameDefConfig.instance.getSystemOpenLevel(13);
            openLevel.LineOffRewardCopy = GameDefConfig.instance.getSystemOpenLevel(44);
            openLevel.LineOffRewardExp = GameDefConfig.instance.getSystemOpenLevel(45);
            openLevel.RedPackPanel = 0;
            openLevel.CollectExchange = GameDefConfig.instance.getSystemOpenLevel(83);
            return;
        }// end function

        public static function getOpenLevel(param1:String) : int
        {
            if (openLevel == null)
            {
                init();
            }
            return int(openLevel[param1]);
        }// end function

    }
}
